package streaming;

import java.util.List;

import simulation.Simulator;

public class Blacklist {

	public Integer cid;
	public Integer hostId;
	public List<Integer> blacklistedIds;
	public double time;
	
	public void aa(){
		
	}
	@Override
	public String toString() {
		String str = "( "+cid+" ,"+hostId+" ){";
		if (blacklistedIds!=null){
			for (Integer i : blacklistedIds){
				str+=i+",";
			} 
		}
		str+="}";
		return str;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((cid == null) ? 0 : cid.hashCode());
		result = prime * result + ((hostId == null) ? 0 : hostId.hashCode());
		result = prime
				* result
				+ ((blacklistedIds == null) ? 0 : blacklistedIds
						.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Blacklist other = (Blacklist) obj;
		if (cid == null) {
			if (other.cid != null)
				return false;
		} else if (!cid.equals(other.cid))
			return false;
		if (hostId == null) {
			if (other.hostId != null)
				return false;
		} else if (!hostId.equals(other.hostId))
			return false;
		if (blacklistedIds == null) {
			if (other.blacklistedIds != null)
				return false;
		} else if (!blacklistedIds.equals(other.blacklistedIds))
			return false;
		return true;
	}
	

	
	
	
	
	
}
